#ifndef __SuperCellViewer_H__
#define __SuperCellViewer_H__

#include "BaseViewer.h"
#include "CoCSWF/CoCSWF.h"

class SuperCellViewer : public BaseViewer
{
public:
    virtual bool initUI();
public:
    CREATE_FUNC(SuperCellViewer);
    SuperCellViewer();

    virtual ui::Widget* createItem(int nIndex, std::string strName);
    virtual void Export(std::string strPath);
    virtual bool LoadFile(std::string strPath);
    virtual void ClearCache();
    void PlayByName(const char *pName);
    void ExportJson(std::string strPath, int nClipIndex);
    void ExportTexture(std::string strPath);

private:
    std::string m_strMaskTextureFormat;
    CoCSWF m_CocSwf;

    ui::Button *m_pSelectedItem;
    ui::ListView *m_pMovieClipList;
};

#endif // __SuperCellViewer_H__
